﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MainWap.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="LangMauViet.Classes.Helper" %>
<%@ Import Namespace="LangMauViet.Models.Entity" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
   Langmauviet.vn
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%--  <link rel="stylesheet" type="text/css" href="/App_Themes/Main.Wap/css/responsiveslides.css" />
    <link rel="stylesheet" type="text/css" href="/App_Themes/Main.Wap/css/index.css" />--%>
    <%--<script src="/App_Themes/Main.Wap/js/responsiveslides.min.js" type="text/javascript"></script>--%>
    
    <% var lVideoHost = (List<Video>)ViewData["listVideoHost"];
       var lVideoNew = (List<Video>)ViewData["listVideoNew"];
       var lImage = (List<Images>)ViewData["listImage"];
       var lNews = (List<News>)ViewData["listNews"];
       var hotImage = (List<HotItem>)ViewData["lihot"];
       var hotNews = (List<HotItem>)ViewData["lnhot"];
       var hotVideo = (List<HotItem>)ViewData["lvhot"];
    %>
    <div id="searchbox">
        <div class="keyword">
            <span class="hot">Chủ đề HOT</span>:
            <% if (!ReferenceEquals(hotImage, null) && hotImage.Count >= 2)
               {
                   for (int i = 0; i < 2; i++)
                   { %>
            <a href="/Anh/Chi-tiet/<%= hotImage[i].Icon %>/<%=UIHelper.convertToUnSign(hotImage[i].Name) %>">
                <%= hotImage[i].Name%></a> <span style="font-size: 12px;">|</span>
            <%}
               }%>
            <% if (!ReferenceEquals(hotVideo, null) && hotVideo.Count >= 2)
               {
                   for (int i = 0; i < 2; i++)
                   {
                       %>
            <a href="/Video/Chi-tiet/<%= hotVideo[i].VideoId %>/<%=UIHelper.convertToUnSign(hotVideo[i].Name) %>">
                <%= hotVideo[i].Name%></a> <span style="font-size: 12px;">|</span>
            <% }
               }%>
            <% if (!ReferenceEquals(hotNews, null) && hotNews.Count >= 2)
               {
                   for (int i = 0; i < 2; i++)
                   {
                       if (i < 1)
                       { %>
            <a href="/Tin-tuc/Chi-tiet/<%= hotNews[i].NewsId %>/<%=UIHelper.convertToUnSign(hotNews[i].Title) %>">
                <%= hotNews[i].Title%></a> <span style="font-size: 12px;">|</span>
            <% }
                       else
                       {%>
            <a href="/Tin-tuc/Chi-tiet/<%= hotNews[i].NewsId %>/<%=UIHelper.convertToUnSign(hotNews[i].Title) %>">
                <%= hotNews[i].Title%></a>
            <%}
                   }
               }%>
        </div>
    </div>
    <div class="clearfix">
    </div>
    <div id="content">
        <h2>
            <span><span>HOT</span> nhất</span></h2>
        <div class="v-list">
            <% if (!ReferenceEquals(lVideoHost, null))
               {
                   foreach (Video v in lVideoHost)
                   { %>
            <div class="v-item ">
                <table>
                    <tbody>
                        <tr valign="top">
                            <td class="left">
                                <a href="/Video/Chi-tiet/<%= v.VideoId %>/<%= UIHelper.convertToUnSign(v.Name) %>">
                                    <img alt="<%= v.Name %>" src="http://vipmobi.net:7001/mobile/download?v=1&w=250&id=<%= v.Icon %>">
                                    <span class="duration">11:48 </span></a>
                            </td>
                            <td class="right">
                                <div class="title">
                                    <a href="/Video/Chi-tiet/<%= v.VideoId %>/<%= UIHelper.convertToUnSign(v.Name) %>">
                                        <%= v.Name %>
                                    </a>
                                </div>
                                <%--<div class="subtitle">
                                    <span>4 Lượt nghe </span>
                                    <div class="clearfix">
                                    </div>
                                    <span>
                                        <!--								<img src="/themes/avideo_v2/images/icon_streaming.gif"/> -->
                                        <a href="/Video/Chi-tiet/<%= v.VideoId %>/<%= UIHelper.convertToUnSign(v.Name) %>">(Nghe/3000d) </a></span>
                                </div>--%>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <% }
               } %>
        </div>
        <div class="clearfix">
        </div>
        <ul class="home-nav">
            <li>1</li>
            <li><a href="/Danh-sach/Video/2/1">2</a></li>
            <li><a href="/Danh-sach/Video/3/1">3</a></li>
            <li><a href="/Danh-sach/Video/4/1">4</a></li>
            <li><a href="/Danh-sach/Video/5/1">5</a></li>
            <li><a href="/Danh-sach/Video/6/1">Tiếp</a></li>
        </ul>
        <div class="clearfix">
        </div>
        <h2>
            <span><span>Mới</span> nhất</span></h2>
        <div class="v-list">
            <% if (!ReferenceEquals(lVideoNew, null))
               {
                   foreach (Video v in lVideoNew)
                   { %>
            <div class="v-item ">
                <table>
                    <tbody>
                        <tr valign="top">
                            <td class="left">
                                <a href="/Video/Chi-tiet/<%= v.VideoId %>/<%= UIHelper.convertToUnSign(v.Name) %>">
                                    <img alt="<%= v.Name %>" src="http://vipmobi.net:7001/mobile/download?v=1&w=250&id=<%= v.Icon %>">
                                    <span class="duration">08:14 </span></a>
                            </td>
                            <td class="right">
                                <div class="title">
                                    <a href="/Video/Chi-tiet/<%= v.VideoId %>/<%= UIHelper.convertToUnSign(v.Name) %>">
                                        <%= v.Name %></a></div>
                                <%--<div class="subtitle">
                                    <span>13 Lượt nghe </span>
                                    <div class="clearfix">
                                    </div>
                                    <span><a href="/Video/Chi-tiet/<%= v.VideoId %>/<%= UIHelper.convertToUnSign(v.Name) %>">(Nghe/3000d) </a></span>
                                </div>--%>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <% }
                } %>
        </div>
        <div class="clearfix">
        </div>
        <ul class="home-nav">
            <li>1</li>
            <li><a href="/Danh-sach/Video/1/2">2</a></li>
            <li><a href="/Danh-sach/Video/1/3">3</a></li>
            <li><a href="/Danh-sach/Video/1/4">4</a></li>
            <li><a href="/Danh-sach/Video/1/5">5</a></li>
            <li><a href="/Danh-sach/Video/1/6">Tiếp</a></li>
        </ul>
    </div>
   
    <div class="menu">
        <div class="clearfix">
        </div>
        <h2>
            <span><span>Chuyên</span> mục</span></h2>
        <div>
            <ul class="main-cat">
                <li class=" "><a href="#"><b>TIN MỚI</b> </a></li>
                <% if (!ReferenceEquals(lNews, null))
                   {
                       foreach (News newse in lNews)
                       { %>
                <div class="v-list">
                    <div class="v-item last">
                        <table>
                            <tbody>
                                <tr valign="top">
                                    <td class="left">
                                        <a href="/Tin-tuc/Chi-tiet/<%= newse.NewsId %>/<%=UIHelper.convertToUnSign(newse.Title) %>">
                                            <img alt="<%= newse.Title %>" src="http://vipmobi.net:7001/mobile/download?v=1&w=500&h=500&id=<%= newse.Icon %>">
                                            </a>
                                    </td>
                                    <td class="right">
                                        <div class="title">
                                            <a href="http://vipmobi.net:7001/mobile/download?v=1&w=500&h=500&id=<%= newse.Icon %>">
                                                <%= newse.Title %></a></div>
                                        <%--<div class="subtitle">
                                            <span>24 lượt xem </span>
                                            <div class="clearfix">
                                            </div>
                                            <span>
                                                <!--								<img src="/themes/avideo_v2/images/icon_streaming.gif"/> -->
                                                <a href="/Tin-tuc/Chi-tiet/<%= newse.NewsId %>/<%=UIHelper.convertToUnSign(newse.Title) %>">(Xem/3000d) </a></span>
                                        </div>--%>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <% }
                       } %>
                <li class=" "><a href="#">
                    <!--<img style="margin-left: 2px" width="12" height="11" src="/themes/avideo/images/"/> -->
                    <b>ẢNH XINH</b> </a></li>
                <% if (!ReferenceEquals(lImage, null))
                   {
                       foreach (Images img in lImage)
                       { %>
                <div class="v-list">
                    <div class="v-item last">
                        <table>
                            <tbody>
                                <tr valign="top">
                                    <td class="left">
                                        <a href="/Anh/Chi-tiet/<%= img.Icon %>/<%=UIHelper.convertToUnSign(img.Name) %>">
                                            <img alt="<%= img.Name %>" src="http://vipmobi.net:7001/mobile/download?v=1&w=250&id=<%= img.Icon %>">
                                            </a>
                                    </td>
                                    <td class="right">
                                        <div class="title">
                                            <a href="/Anh/Chi-tiet/<%= img.Icon %>/<%=UIHelper.convertToUnSign(img.Name) %>">
                                                <%= img.Name %></a></div>
                                        <%--<div class="subtitle">
                                            <span>41 lượt xem </span>
                                            <div class="clearfix">
                                            </div>
                                            <span><a href="/Anh/Chi-tiet/<%= img.Icon %>/<%=UIHelper.convertToUnSign(img.Name) %>">(Xem/3000d) </a></span>
                                        </div>--%>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <% }
                       } %>
            </ul>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="metaheader" runat="server">
</asp:Content>
